//
//  HWScanViewController.swift
//  HWanGame
//
//  Created by 王昌健 on 2022/11/2.
//  Copyright © 2022 94Wan. All rights reserved.
//

import UIKit
import swiftScan
class HWScanViewController: LBXScanViewController {
    var navView:HWNavigationView!
    override func viewDidLoad() {
        super.viewDidLoad()

        
    }
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        navView = HWNavigationView()
//        navView.titleLabel.text = "扫码登录"
//        navView.backButton.setImage(UIImage(named: "navBackButton"), for: .normal)
        self.qRScanView?.addSubview(navView)
        navView.snp.makeConstraints { make in
            make.left.right.equalTo(0)
            make.top.equalTo(0)
        }
        
        navView.backButtonClick = {
            self.navigationController?.popViewController(animated: true)
        }
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
